/**
 * 位置对象
 */
class Position {
    /**
     * @param {*} longitude
     * @param {*} latitude
     * @param {*} param2
     */
    constructor(longitude = 0, latitude = 0, config) {
        let { height = 0, roll = 0, pitch = 0, heading = 0 } = config || {};
        this.longitude = longitude;
        this.latitude = latitude;
        this.height = height;
        this.roll = roll;
        this.pitch = pitch;
        this.heading = heading;
    }
    toObject() {
        let simple = {
            longitude: this.longitude,
            latitude: this.latitude,
        };
        return simple;
    }
}

export default Position;
